package com.bootdo.shop.service;

import com.bootdo.common.domain.Tree;
import com.bootdo.shop.domain.CategoryDO;
import com.bootdo.system.domain.DeptDO;
import com.bootdo.system.domain.MenuDO;

import java.util.List;
import java.util.Map;

/**
 * 产品分类表
 * 
 * @author yhg
 * @email 1992lcg@163.com
 * @date 2017-12-14 14:42:35
 */
public interface CategoryService {
	
	CategoryDO get(Long categoryId);
	
	List<CategoryDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(CategoryDO category);
	
	int update(CategoryDO category);
	
	int remove(Long categoryId);
	
	int batchRemove(Long[] categoryIds);

	Tree<CategoryDO> getTree();
	/***商城首页分类查询*/
	List<Tree<CategoryDO>> listMenuTree();
	
	/***获取兄弟类型列表*/
	List<CategoryDO> getCategoryBrotherList(Long categoryId);
}
